import request from '@/utils/request'

//获取集团列表
export function queryGroupList(params) {
	return request({
		url: '/product/hangup/circle/list',
		method: 'post',
		params:params
	})
}

//获取集团详情
export function queryGroupDetail(params) {
	return request({
		url: '/product/hangup/circle/circleDetail',
		method: 'post',
		params:params
	})
}


//编辑时获取集团详情
export function queryGroupDetail2(params) {
	return request({
		url: '/product/hangup/circle/toEditPage',
		method: 'post',
		params:params
	})
}

//新建集团
export function addGroup(params) {
	return request({
		url: '/product/hangup/circle/save',
		method: 'post',
		params:params
	})
}

//编辑集团
export function updateGroup(params) {
	return request({
		url: '/product/hangup/circle/updateCircle',
		method: 'post',
		params:params
	})
}
 
//查询号码及资费信息
export function queryPhoneAndFee(params) {
	return request({
		url: '/product/hangup/circle/queryPhoneAndFee',
		method: 'post',
		params:params
	})
}

//查询资费信息
export function queryFee(params) {
	return request({
		url: '/product/hangup/circle/comboFeeAndQuantity',
		method: 'post',
		params:params
	})
}

//获取成员列表
export function queryMemberList(params) {
	return request({
		url: '/product/hangup/member/list',
		method: 'post',
		params:params
	})
}

//成员续费
export function renewMember(params) {
	return request({
		url: '/product/hangup/member/renewMember',
		method: 'post',
		params:params
	})
}

//添加成员
export function addMember(params) {
	return request({
		url: '/product/hangup/member/addMember',
		method: 'post',
		params:params
	})
}

//删除成员
export function delMember(params) {
	return request({
		url: '/product/hangup/member/removeMember',
		method: 'post',
		params:params
	})
}

//成员补录
export function addPhone(params) {
	return request({
		url: '/product/hangup/member/buluMember',
		method: 'post',
		params:params
	})
}

//成员批量申诉
export function appealMember(params) {
	return request({
		url: '/product/hangup/member/appealMember',
		method: 'post',
		params:params
	})
}

//保存渠道备注
export function saveChannelMark(params) {
	return request({
		url: '/product/hangup/member/exitChannelMemo',
		method: 'post',
		params:params
	})
}

//保存平台备注
export function savePlatformMark(params) {
	return request({
		url: '/apitest/getToken',
		method: 'post',
		params:params
	})
}

//成员重置模板
export function resetMemberTemplate(params) {
	return request({
		url: '/product/hangup/member/resetMemberTemplate',
		method: 'post',
		params:params
	})
}

//成员转网
export function transferMemberMerchant(params) {
	return request({
		url: '/product/hangup/member/transferMemberMerchant',
		method: 'post',
		params:params
	})
}

//成员退订
export function refundMember(params) {
	return request({
		url: '/product/hangup/member/exitMember',
		method: 'post',
		params:params
	})
}

//获取操作记录
export function queryOperateHistory(params) {
	return request({
		url: '/product/hangup/member/findMemberRecord',
		method: 'post',
		params:params
	})
}

//获取集团下短信模板列表
export function queryTemplateList(params) {
	return request({
		url: '/product/hangup/template/list',
		method: 'post',
		params:params
	})
}

//获取集团下短信模板数量
export function queryTemplateNum(params) {
	return request({
		url: '/product/hangup/template/queryCircleTemplateQuantity',
		method: 'post',
		params:params
	})
}

//添加短信模板
export function saveTemplate(params) {
	return request({
		url: '/product/hangup/template/save',
		method: 'post',
		params:params
	})
}

//编辑短信模板
export function updateTemplate(params) {
	return request({
		url: '/product/hangup/template/editTemplate',
		method: 'post',
		params:params
	})
}

//设置短信模板
export function setTemplate(params) {
	return request({
		url: '/product/hangup/template/setTemplate',
		method: 'post',
		params:params
	})
}

//获取号码列表
export function queryPhoneList(params) {
	return request({
		url: '/product/hangup/member/phoneManage',
		method: 'post',
		params:params
	})
}

//替换号码
export function replacePhone(params) {
	return request({
		url: '/product/hangup/member/replaceMember',
		method: 'post',
		params:params
	})
}

//获取订单列表
export function queryOrderList(params) {
	return request({
		url: '/product/hangup/order/list',
		method: 'post',
		params:params
	})
}

//获取订单详情
export function queryOrderDetail(params) {
	return request({
		url: '/product/hangup/order/orderDetail',
		method: 'post',
		params:params
	})
}

//获取加价列表
export function queryPriceList(params) {
	return request({
		url: '/product/hangup/Addfee/list',
		method: 'post',
		params:params
	})
}

//支付
export function pay(params) {
	console.log(params)
	return request({
		url: '/product/hangup/circle/payOrder',
		method: 'post',
		params:params
	})
}

//取消订单
export function cancelOrder(params) {
	return request({
		url: '/product/hangup/order/cancleOrder',
		method: 'post',
		params:params
	})
}

//获取卡券列表
export function queryCouponList(params) {
	return request({
		url: '/product/hangup/order/queryCoupon',
		method: 'post',
		params:params
	})
}

//获取待支付订单个数
export function getWaitPayCount(params) {
	return request({
		url: '/product/hangup/order/queryPenddingOrder',
		method: 'post',
		params:params
	})
}

//保存加价
export function savePrice(params) {
	return request({
		url: '/product/hangup/Addfee/edit',
		method: 'post',
		params:params
	})
}

//获取公告列表
export function queryNoticeList(params) {
	return request({
		url: '/product/hangup/Notice/list',
		method: 'post',
		params:params
	})
}

//通知公告弹窗
export function queryNoticeDialog(params) {
	return request({
		url: '/product/hangup/Notice/dialog',
		method: 'post',
		params:params
	})
}

//关闭公告弹窗
export function closeNotice(params) {
	return request({
		url: '/product/hangup/Notice/addNoticeReadRecord',
		method: 'post',
		params:params
	})
}

//校验号码是否已存在
export function verifyExistPhone(params) {
	return request({
		url: '/product/hangup/circle/verifyExistPhone',
		method: 'post',
		params:params
	})
}


//查看当前渠道是否存在活动的奖品劵
export function queryExistAward() {
	return request({
		url: '/order/activitypro/channelExistsAward',
		method: 'post',
		params:{activityproUid:'737b37e7a74443f89884fc47e9a0a9a0'}
	})
}